/*
 * @Author: taiyunhang
 * @Date: 2019-01-10 10:53:58
 * */

import { axiosResource } from './axiosapi';

const API_HOST = '';
const SERVICE_NAME = '';

export const Resource = {
  /**
   * 首页
   */
  // 发送type
  addressType: axiosResource(`${API_HOST}${SERVICE_NAME}/removeLogin.jhtm`),

  /**
   * 登录
   */
  // 登录接口
  login: axiosResource(`${API_HOST}${SERVICE_NAME}/user/login`),
  // 免登录接口
  removeLogin: axiosResource(`${API_HOST}${SERVICE_NAME}/user/removeLogin`),
  // 获取短信验证码
  getCheckCode: axiosResource(`${API_HOST}${SERVICE_NAME}/user/getCheckCode`),
  // 获取图形验证码
  getRandomVCode: axiosResource(`${API_HOST}${SERVICE_NAME}/getRandomVCode.jhtm`),

  /**
   * 个人中心
   */
  // 获取用户信息
  getUserInfo: axiosResource(`${API_HOST}${SERVICE_NAME}/userInfo.jhtm`),
  // 查询权益
  queryRights: axiosResource(`${API_HOST}${SERVICE_NAME}/user/queryRights`),

  // 获取微信openId
  getOpenId: axiosResource(`${API_HOST}${SERVICE_NAME}/user/getOpenId`),
  // 获取微信getAppId
  getAppId: axiosResource(`${API_HOST}${SERVICE_NAME}/user/getAppId`),

  /**
   * 活动页面
   */
  // 获取剩余名额
  getRemainNum: axiosResource(`${API_HOST}${SERVICE_NAME}/remainNum.jhtm`),
  // 获取活动参与资格
  getValidateRule: axiosResource(`${API_HOST}${SERVICE_NAME}/validate-rule.jhtm`),

  /**
   * 网点查询
   */
  // 城市区域
  getAreaList: axiosResource(`${API_HOST}${SERVICE_NAME}/get-areaList.jhtm`),
  // 网点列表
  getWebList: axiosResource(`${API_HOST}${SERVICE_NAME}/get-webList.jhtm`),

  /**
   * 支付
   */
  // 微信支付
  payConfirm: axiosResource(`${API_HOST}${SERVICE_NAME}/pay-confirm.jhtm`),

  // 当前支付订单查询
  orderQuery: axiosResource(`${API_HOST}${SERVICE_NAME}/order-query.jhtm`),

  // 获取剩余名额orderQuery
  orderQiang: axiosResource(`${API_HOST}${SERVICE_NAME}/order-qiang.jhtm`),

  /**
   * 我的订单
   */
  // 订单列表查询
  selectBespeakOrder: axiosResource(`${API_HOST}${SERVICE_NAME}/user/selectBespeakOrder`),
  // 订单取消
  cancelBespeak: axiosResource(`${API_HOST}${SERVICE_NAME}/bespeak/cancelBespeak`),
  //查看订单
  getBespeakInfoDTO: axiosResource(`${API_HOST}${SERVICE_NAME}/user/getBespeakInfoDTO`),

  // 退款
  refundOrder: axiosResource(`${API_HOST}${SERVICE_NAME}/refund-order.jhtm`),


  // David.chen

  // 选择服务礼包
  chooseService: axiosResource(`${API_HOST}${SERVICE_NAME}/user/chooseService`),

  // 查询用户信息
  userInfo: axiosResource(`${API_HOST}${SERVICE_NAME}/user/userInfo`),

  // 完善用户信息
  fillUserInfo: axiosResource(`${API_HOST}${SERVICE_NAME}/user/fillUserInfo`),

  // 退出登录
  loginOut: axiosResource(`${API_HOST}${SERVICE_NAME}/user/loginOut`),
  
  // 查询券码列表
  selectTicket: axiosResource(`${API_HOST}${SERVICE_NAME}/user/selectTicket`),

  // 创建预约订单
  createBespeak: axiosResource(`${API_HOST}${SERVICE_NAME}/bespeak/createBespeak`),
  // 修改预约订单
  updateBespeak: axiosResource(`${API_HOST}${SERVICE_NAME}/bespeak/updateBespeak`),
  

  // 兑换洗车权益
  changeTicket: axiosResource(`${API_HOST}${SERVICE_NAME}/user/changeTicket`),

  // post跨域传递
  jsonPost: axiosResource(`${API_HOST}${SERVICE_NAME}/relay/jsonPost`),

  // 兑换洗车权益
  get: axiosResource(`${API_HOST}${SERVICE_NAME}/relay/get`),

  // 第三方接口
  relayPost: axiosResource(`${API_HOST}${SERVICE_NAME}/relay/post`),

  // 第三方接口
  relayGet: axiosResource(`${API_HOST}${SERVICE_NAME}/relay/get`)
};
